package designmode.share;

public class Main {
    public static void main(String[] args) {
        ShareFactory shareFactory = new ShareFactory();
        IFlyWeightElem ball1 = shareFactory.getBall(1);
        IFlyWeightElem ball2 = shareFactory.getBall(1);
        System.out.println(ball1 == ball2);
        ball1.show();
        ball2.show();
    }
}
